<?php
use think\facade\Route;

// Route::post('/user/base/register','user.base/register');

/*
    Base
        注册
        登录
        修改资料
*/
Route::group('user/base',function() {
    Route::post('register','user.base/register');
    //user/base/login => user.base/login 登录POST路由
    Route::post('login','user.base/login');
    Route::post('check','user.base/check');
    Route::post('profile','user.base/profile');
    Route::post('weixin','user.base/weixin');
});

/*
    收货地址 api
        列表
        添加
        编辑
        选择默认地址
*/
Route::group('user/address',function() {
    Route::post('index','user.address/index');
    Route::post('add','user.address/add');
    Route::post('select','user.address/select');
    Route::post('info','user.address/info');
    Route::post('order','user.address/order');
    Route::post('edit','user.address/edit');
});

/*
    商品接口
        列表
*/
Route::group('product/product',function() {
    Route::post('index','product.product/index');
    Route::post('info','product.product/info');
});

/*
    分类接口
*/
Route::group('product/type',function() {
    Route::post('index','product.type/index');
});

/*
    购物车接口
        添加购物车
        列表
*/
Route::group('product/cart',function() {
    Route::post('add','product.cart/add');
    Route::post('index','product.cart/index');
    Route::post('stepper','product.cart/stepper');
    Route::post('confirm','product.cart/confirm');
});

/*
    订单接口
        新增订单
*/
Route::group('order/order',function() {
    Route::post('add','order.order/add');
});


/*
    微信用户相应接口
*/
Route::group('user/auth',function() {
    Route::post('login','user.auth/login');
    Route::post('bind','user.auth/bind');
    Route::post('profile','user.auth/profile');
});

/*
    预约服务
*/
Route::group('project/project',function() {
    Route::post('index','project.project/index');
});

?>